<html lang="en"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="keywords" content="">


<link rel="stylesheet" type="text/css" href="/external/css/style.css">
<link rel="stylesheet" type="text/css" href="/external/bootstrap/css/bootstrap.css">

<!--
<link rel="stylesheet" type="text/css" href="/external/fancybox/jquery.fancybox-1.3.4.css">-->
<script type="text/javascript" src="/external/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/external/jquery-migrate-1.2.1.js"></script>
<!--
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>-->
<script type="text/javascript" src="/external/fancybox/jquery.easing-1.3.pack.js"></script>
<script type="text/javascript" src="/external/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="/external/tiny_mce/jquery.tinymce.js"></script>
<script type="text/javascript" src="/external/bootstrap/js/bootstrap.js"></script>

<script type="text/javascript" src="/external/fancybox/jquery.fancybox-1.3.4.js"></script>
<link rel="stylesheet" type="text/css" href="/external/fancybox/jquery.fancybox-1.3.4.css" media="screen">

<!--
<script type="text/javascript" src="/external/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="/external/fancybox/jquery.fancybox-1.3.4.pack.js"></script>-->

<title><?if(isset($title)){?><?=$title?><?}?></title>
<!--[if lt IE 9]>
      <script src="/external/bootstrap/js/html5shiv.js"></script>
      <script src="/external/bootstrap/js/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" href="/external/tiny_mce/themes/advanced/skins/default/ui.css"></head>
<body>
	<header class="navbar navbar-default  bs-docs-nav">
		<div class="container">
			<div class="navbar-header">
				<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
					<span class="sr-only">Toggle navigation</span> 
					<span class="icon-bar"></span> 
					<span class="icon-bar"></span> 
					<span class="icon-bar"></span> 
				</button>
				<a class="navbar-brand" style="margin:0;padding:0" href="/">
					<!--<img src="/images/shichengeat-logo.png" alt="">-->
					雅思听力
				</a>
			</div>
			
			<nav class="navbar-collapse bs-navbar-collapse collapse">
				<ul class="nav navbar-nav" id="yw0">
					<?if(isset($this->session->userdata['adminflag'])){?>
						<li class="current"><a href="/index.php/admin/question/list"><span class="glyphicon"></span> 题目管理</a></li>
						<li class="current"><a href="/index.php/admin/user/list"><span class="glyphicon"></span> 用户管理</a></li>
						<li class="current"><a href="/index.php/admin/level/list"><span class="glyphicon"></span> 关卡管理</a></li>
					<?}?>
				</ul>
				<ul class="nav navbar-nav  pull-right" id="yw1">
					<?if(isset($this->session->userdata['user'])){?>
						<li>
							<a href="/index.php/pages/logout"><span class="glyphicon glyphicon-user"></span> 退出</a>
						</li>
					<?}else{?>
						<li>
							<a href="/index.php/pages/login"><span class="glyphicon glyphicon-user"></span>登录</a>
						</li>
						<li>
							<a href="/index.php/pages/regist"><span class="glyphicon glyphicon-user"></span>注册</a>
						</li>
					<?}?>
				</ul>
			</nav>
		</div>
	</header>

	<?php //echo validation_errors('<div class="alert alert-danger">', '</div>'); ?>


  